Command Revisited
نویسندگان
چکیده
This pattern revisits the Command [GoF] and Command Processor [POSA1] patterns. The reasons for this revisiting is that we think that the Command and Command Processor patterns do not really capture the essence of what the Command pattern is. We think that Command is basically a way to emulate the concept of closures in object-oriented languages that don't natively have this feature. The Command Revisited pattern packages a piece of application functionality as well as its parameterization in an object in order to make it usable in another context, such as later in time or in a different thread. Example Suppose you are building a complex communication software. The individual sub-sequences of the protocol are similar, but not quite identical. The sub-sequences contain logic that operates on some form of state, also called context. For the various sub-sequences, adapted context information is necessary. Because of maintainability and to keep the footprint small—the communication software is to be used in an embedded device—you want to reuse repeating sub-sequences. For example in the figure above you can detect process step " B " be involved in protocol I as well as in protocol II. The state on which the sub-sequence depends is similar in both cases. The isolation of reusable sub-sequences is the result of an in-depth analysis of the communication protocol. How can
منابع مشابه
The Vela pulsar proper motion revisited with HST
Your thesaurus codes are: ASTRONOMY AND ASTROPHYSICS The Vela pulsar proper motion revisited with HST astrometry ⋆. Abstract. Using all the HST WFC/WFPC2 images of the field collected so far, we have performed an accurate relative astrometry analysis to reassess the value of the Vela pulsar proper motion. Although covering a much shorter time span, our measurement clearly confirms the previous ...
متن کاملQUICKSELECT Revisited
We give an overview of the running time analysis of the random divide-and-conquer algorithm FIND or QUICKSELECT. The results concern moments, distribution of FIND’s running time, the limiting distribution, a stochastic bound and the key: a stochastic fixed point equation.
متن کاملThe function ring functors of pointfree topology revisited
This paper establishes two new connections between the familiar function ring functor ${mathfrak R}$ on the category ${bf CRFrm}$ of completely regular frames and the category {bf CR}${mathbf sigma}${bf Frm} of completely regular $sigma$-frames as well as their counterparts for the analogous functor ${mathfrak Z}$ on the category {bf ODFrm} of 0-dimensional frames, given by the integer-valued f...
متن کاملCross-Linguistic Transfer Revisited: The Case of English and Persian
The present study sought to investigate the evidence for cross-linguistic transfer in a partial English immersion and non-immersion educational setting. To this end, a total of 145 first, third and fifth graders in a partial English immersion program and 95 students from the same grade levels in a non-immersion program were chosen. Six different English and Persian tests were administered: the ...
متن کاملThe “Man with Serpents” revisited. On a Figurated Pin from the Bronze Age Site of Shahdad (Kerman, Iran)
We discuss a figured pin from Shahdad, previously well known but published with a partial and unsatisfactory drawing. More detailed observations and a new, more realistic recording of this important artifact reconsider its stylistic and iconographic links with the imagery of the Halil Rud civilization and the eastern Iranian Plateau in general, and, at its opposite cultural poles, with Mesopot...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 2004